package router

import (
	"github.com/gin-gonic/gin"
	"video-manager/handlers"
)

func Init() *gin.Engine {

	r := gin.Default()

	r.Static("/static", "./static")

	r.POST("register", handlers.Register)
	r.POST("login", handlers.Login)
	r.POST("create", handlers.CreateVideo)
	return r
}
